package com.ezhuan.users.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.ezhuan.common.util.PageInfoUtil;
import com.ezhuan.users.pojo.AUsers;
import com.ezhuan.users.pojo.AUsersWithdraw;
import com.ezhuan.users.pojo.AWithdrawHistory;

/**
 * 用户相关的接口
 * 
 * @author wangshSxt
 *
 */
public interface IUsersService
{
	/*---- 用户模块管理开始 ----*/
	/**
	 * 保存一条用户
	 * 
	 * @param users
	 * @return
	 */
	JSONObject saveOneUsersService(AUsers users);
	
	/**
	 * 更新一条用户
	 * 
	 * @param users
	 * @return
	 */
	JSONObject updateOneUsersService(AUsers users);

	/**
	 * 查询一条用户
	 * 
	 * @return
	 */
	AUsers findOneUsersService(Map<String, Object> condMap);

	/**
	 * 查询多条用户
	 * 
	 * @return
	 */
	List<AUsers> findCondListUsersService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/*---- 用户模块管理结束 ----*/
	
	/*---- 用户提现资料模块管理开始 ----*/
	/**
	 * 保存一条用户提现资料
	 * 
	 * @param usersWithdraw
	 * @return
	 */
	JSONObject saveOneUsersWithdrawService(AUsersWithdraw usersWithdraw);
	
	/**
	 * 更新一条用户提现资料
	 * 
	 * @param usersWithdraw
	 * @return
	 */
	JSONObject updateOneUsersWithdrawService(AUsersWithdraw usersWithdraw);

	/**
	 * 查询一条用户提现资料
	 * 
	 * @return
	 */
	AUsersWithdraw findOneUsersWithdrawService(Map<String, Object> condMap);

	/**
	 * 查询多条用户提现资料
	 * 
	 * @return
	 */
	List<AUsersWithdraw> findCondListUsersWithdrawService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/*---- 用户提现资料模块管理结束 ----*/
	
	/*---- 用户提现明细模块管理开始 ----*/
	/**
	 * 保存一条用户提现明细
	 * 
	 * @param withdrawHistory
	 * @return
	 */
	JSONObject saveOneWithdrawHistoryService(AWithdrawHistory withdrawHistory);
	
	/**
	 * 更新一条用户提现明细
	 * 
	 * @param withdrawHistory
	 * @return
	 */
	JSONObject updateOneWithdrawHistoryService(AWithdrawHistory withdrawHistory);

	/**
	 * 查询一条用户提现明细
	 * 
	 * @return
	 */
	AWithdrawHistory findOneWithdrawHistoryService(Map<String, Object> condMap);

	/**
	 * 查询多条用户提现明细
	 * 
	 * @return
	 */
	List<AWithdrawHistory> findCondListWithdrawHistoryService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
	/*---- 用户提现明细模块管理结束 ----*/
}
